
import request from 'umi-request';

  export async function addFakeList(params) {
    console.log(params)
    return request('/class/create', {
      method: 'POST',
      data: params,
      requestType:"json"
    });
  }
  export async function queryFakeList(params) {
    params ={type200:1,...params}
    return request('/class/list', {
      params
    });
  }
  export async function searchsteaList(params) {
    params ={type200:1,...params}
    return request('/admin/searchTeacher', {
      params
    });
  }
  export async function searchstuList(params) {
    params ={type200:1,...params}
    return request('/admin/searchStudent', {
      params
    });
  }
  export async function addstudent(params) {
    return request('/class/studentCreate', {
      method: 'POST',
      params
    });
  }
  export async function getstudents(params) {
    params ={type200:1,...params}
    return request('/class/studentList', {
      params
    });
  }
  export async function studentDel(params) {
    return request('/class/studentDel', {
      method: 'POST',
      params
    });
  }
  export async function exportResultExcel(params) {
    params ={type200:1,...params}
    return request('/class/exportResultExcel', {
      params
    });
  }
  export async function removeFakeList(params) {
    return request('/class/del', {
      method: 'POST',
      params
    });
  }

  export async function updateFakeList(params) {
    return request('/class/update', {
      method: 'POST',
      data: params,
    });
  }


 
  export async function importExcel(params) {
    // 班级数据导入
    return request('/class/importExcel', {
      method: 'POST',
      data: params,
      requestType: 'form',
    });
  }

  
  
 
